import { _decorator, Component, input, Node,Input } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('startGame')
export class startGame extends Component {
    // 准备开始组件
    @property(Node)
    public readyStart:Node = null
    @property(Node)
    public bird:Node = null
    start() {
        input.on(Input.EventType.TOUCH_START,this.startGame,this)
    }
    startGame(){
        // 关闭当前界面上显示的开始节点
        this.node.getParent().active = false
        // this.node.active = false
        // 开启其他节点
        this.readyStart.active = true
        this.bird.active = true
    }

    update(deltaTime: number) {
        
    }
}


